package com.zqt.zqt805.service.Impl;

import com.zqt.zqt805.domain.Review;
import com.zqt.zqt805.mapper.ReviewMapper;
import com.zqt.zqt805.service.ReviewService;
import com.zqt.zqt805.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReviewServiceImpl implements ReviewService {

    @Autowired
    private ReviewMapper reviewMapper;

    @Override
    public Review getReview(int reviewId) {
        Review review = reviewMapper.selectReviewById(reviewId);
        return review;
    }
}